import { DeptRatioManageAPI } from '../common/type';

const ManageSearchColumns = (): DeptRatioManageAPI.ISearchList => {
  return [
    {
      name: 'title',
      placeholder: '系统模块',
      label: '系统模块',
      componentType: 'Input',
      allowClear: true,
      md: 4,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'operName',
      placeholder: '操作人员',
      label: '操作人员',
      componentType: 'Input',
      allowClear: true,
      md: 4,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'businessType',
      placeholder: '操作类型',
      label: '操作类型',
      componentType: 'Select',
      allowClear: true,
      md: 4,
      sm: 24,
      whetherSenior: false,
      dataSource: [
        { name: '其他', id: '0', value: '0' },
        { name: '查询', id: '1', value: '1' },
        { name: '新增', id: '2', value: '2' },
        { name: '修改', id: '3', value: '3' },
        { name: '删除', id: '4', value: '4' },
        { name: '授权', id: '5', value: '5' },
        { name: '导出', id: '6', value: '6' },
        { name: '导入', id: '7', value: '7' },
        { name: '强退', id: '8', value: '8' },
        { name: '生成代码', id: '9', value: '9' },
        { name: '清空数据', id: '10', value: '10' },
      ],
    },
    {
      name: 'status',
      placeholder: '状态',
      label: '状态',
      componentType: 'Select',
      dataSource: [
        { name: '正常', id: '0', value: '0' },
        { name: '异常', id: '1', value: '1' },
      ],
      allowClear: true,
      md: 4,
      sm: 24,
      whetherSenior: false,
    },
    {
      name: 'operTime',
      placeholder: '操作',
      label: '',
      componentType: 'RangePicker',
      allowClear: true,
      md: 6,
      sm: 24,
      whetherSenior: false,
    },
  ];
};

export { ManageSearchColumns };
